package com.tencent.albert.weixin.driver.bean;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;

/**
 * Created by albertzhu on 15/2/12.
 */
public class AccessToken extends WxRespBean{

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    long id ;

    public Date getCreate_at() {
        return create_at;
    }

    public void setCreate_at(Date create_at) {
        this.create_at = create_at;
    }

    public Date getUpdate_at() {
        return update_at;
    }

    public void setUpdate_at(Date update_at) {
        this.update_at = update_at;
    }

    Date create_at;
    Date update_at;

    // 获取到的凭证
    private String access_token;
    // 凭证有效时间，单位：秒
    private int expires_in;

    public String getAccess_Token() {
        return access_token;
    }

    public void setAccess_Token(String access_token) {
        this.access_token = access_token;
    }

    public int getExpires_In() {
        return expires_in;
    }

    public void setExpires_In(int expires_in) {
        this.expires_in = expires_in;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
